package com.itheima.reggie;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author ：sean
 * @date ：Created in 2022/5/16
 * @description ：启动类
 * @version: 1.0
 */
@SpringBootApplication
@Slf4j
@MapperScan("com.itheima.reggie.mapper")
@ServletComponentScan
@EnableTransactionManagement
@EnableCaching
@EnableSwagger2
@EnableKnife4j
public class ReggieApplication {
	public static void main(String args[]){
		log.info("[启动瑞吉项目]");
		SpringApplication.run(ReggieApplication.class,args);
	}
}
